import { HTTP } from "../../utils/http.js";

class LessonModel extends HTTP {

	getLessonApi(data) {
		return this.request({
			url: "/wx/course/list",
			data: data,
			method: "GET"
		})
	}

	// 保存
	saveLessonApi(data) {
		return this.request({
			url: "/wx/course/save",
			data: data,
			method: "POST"
		})
	}

	// 删除
	deleteLessonApi(data) {
		return this.request({
			url: "/wx/course/delete",
			data: data,
			method: "POST"
		})
	}

	// 编辑
	updateLessonApi(data) {
		return this.request({
			url: "/wx/course/update",
			data: data,
			method: "POST"
		})
	}
}

export { LessonModel }